<?php if ($show): ?>
     <td class="doc_menu">
      <a href="<?php echo url_for('file_edit', $file) ?>"><img src="/images/editb.png"/></a>
    </td>
    <td class="doc_menu">
      <?php echo link_to('<img src="/images/delb.png"/>','file/delete?id='.$file->getId(),
            array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
    </td>
    <td class="doc_menu">
      <a href="<?php echo url_for('download', $file) ?>"><img src="/images/downb.png"/></a>
    </td>  
<?php endif;?>
   
<td class="doc_menu">
   <a href="<?php echo url_for('file_download_history', $file) ?>"><img src="/images/historyb.png"/></a>
</td>